package com.itheima.sfbx.insurance.enumTest;

/**
 * sfbx-cloud
 * 2025/1/10 11:55
 * D By 1mZ
 */
public enum D {
    TRAIN {
        @Override
        public String tool() {
            return "火车";
        }
    },
    CAR {
        @Override
        public String tool() {
            return "汽车";
        }
    },
    P {
        @Override
        public String tool() {
            return "飞机";
        }
    };

    public abstract String tool();

}
